GBML manual / Paths

path_stop

Stops this instance following its current path (a no-op if it was not following one) - leaves its position exactly where it was.

Syntax

path_stop()

Returns

Nothing.

Description

Stops this instance following its current path - a no-op if it was not following one - leaving it exactly where it was.

Example

if (btn_pressed(BTN_A)) {
    path_stop();
}

Stops the walker following whatever path it is on the instant A is pressed, wherever it happened to be along it.

See also: path_start